Fix -xen build.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 2 Mar 2007 16:57:24 +0000 (16:57 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 2 Mar 2007 16:57:24 +0000 (16:57 +0000)
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c

index 53d091d576f67a60853bf648cc2d4c375bf26a96..8b62b07724eed9590457dd9607487b8c386886a9 100644 (file)
@@ -437,7 +437,7 @@ static int tpmfront_suspend(struct xenbus_device *dev)
        return 0;
 }
 
-static int tpmfront_resume(struct tpm_private *tp)
+static int tpmfront_suspend_finish(struct tpm_private *tp)
 {
        tp->is_suspended = 0;
        /* Allow applications to send again. */
@@ -448,7 +448,7 @@ static int tpmfront_resume(struct tpm_private *tp)
 static int tpmfront_suspend_cancel(struct xenbus_device *dev)
 {
        struct tpm_private *tp = tpm_private_from_dev(&dev->dev);
-       return tpmfront_resume(tp);
+       return tpmfront_suspend_finish(tp);
 }
 
 static int tpmfront_resume(struct xenbus_device *dev)
@@ -691,7 +691,7 @@ static void tpmif_set_connected_state(struct tpm_private *tp, u8 is_connected)
         * This also removes the suspend state.
         */
        if (is_connected == 1 && tp->is_suspended == 1)
-               tpmfront_resume(tp);
+               tpmfront_suspend_finish(tp);
 
        if (is_connected != tp->is_connected) {
                tp->is_connected = is_connected;